package com.qiyuesuo.untils;

import com.qiyuesuo.common.BaseClass;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;

public class GetConnectionUntils extends BaseClass {

    /**
     * 获取不需要代理的连接
     * @param url
     * @return
     */
    public static HttpURLConnection GetNotProxyConnection(URL url){
        URLConnection urlConnection = null;
        try {
            urlConnection = url.openConnection();
        } catch (IOException e) {
            logger.error("获取连接异常" + e.getMessage() + "||" + e.getStackTrace());
        }return (HttpURLConnection) urlConnection
                ;
    }


}
